<?php
/**
 * Created by PhpStorm.
 * User: changyifan
 * Date: 2018/3/13
 * Time: 上午11:28
 */

namespace Home\Dao;
use Think\Model\BaseDao;

class TeachercourseDao extends BaseDao{





    public function addTeacherCourseNoun($tea_id,$cou_id){
        $data['tea_id'] = $tea_id;
        $data['cou_id'] = $cou_id;
        $info = $this->add($data);
        if ($info){
            return true;
        }else{
            return false;
        }
    }
    public function deleteTeacherCourseNoun($tea_id,$cou_id){
        $data['tea_id'] = $tea_id;
        $data['cou_id'] = $cou_id;
        $info = $this->where($data)->delete();
        if ($info){
            return true;
        }else{
            return false;
        }
    }




}